summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/qscriptdebuggercodewidgetinterface.cpp
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-07-19 05:15:58 (GMT)
committerAndrew den Exter <andrew.den-exter@nokia.com>2011-07-19 05:57:22 (GMT)
commitf9e7aee2019d321edd655bfde7de43f20a106971 (patch)
treed031fdfe4c9f1b63bffb395e8572454578e339d0 /src/scripttools/debugging/qscriptdebuggercodewidgetinterface.cpp
parentcf23188de237009136fa1480ab8fd9e3ca364769 (diff)
downloadQt-f9e7aee2019d321edd655bfde7de43f20a106971.zip
Qt-f9e7aee2019d321edd655bfde7de43f20a106971.tar.gz
Qt-f9e7aee2019d321edd655bfde7de43f20a106971.tar.bz2
Delay masking the last character in Password echo mode.
If QT_GUI_PASSWORD_ECHO_DELAY is defined in qplatformdefs.h with an integer value in milliseconds, QLineEdit and TextInput will display the last character entered unmasked for that delay period and then mask the character as normal. If QT_GUI_PASSWORD_ECHO_DELAY is not defined then the behaviour is unchanged. Change-Id: I55f527932d34453828caba88e93ad57e012e79be Task-number: QTBUG-17003 Reviewed-by: Martin Jones
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggercodewidgetinterface.cpp')
0 files changed, 0 insertions, 0 deletions
09693 Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_set_int.c
blob: 106c4e2250cd63c60efef37fdccd9140025fed90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <tommath.h>
#ifdef BN_MP_SET_INT_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
 *
 * LibTomMath is a library that provides multiple-precision
 * integer arithmetic as well as number theoretic functionality.
 *
 * The library was designed directly after the MPI library by
 * Michael Fromberger but has been written from scratch with
 * additional optimizations in place.
 *
 * The library is free for all purposes without any express
 * guarantee it works.
 *
 * Tom St Denis, tomstdenis@gmail.com, http://math.libtomcrypt.com
 */

/* set a 32-bit const */
int mp_set_int (mp_int * a, unsigned long b)
{
  int     x, res;

  mp_zero (a);
  
  /* set four bits at a time */
  for (x = 0; x < 8; x++) {
    /* shift the number up four bits */
    if ((res = mp_mul_2d (a, 4, a)) != MP_OKAY) {
      return res;
    }

    /* OR in the top four bits of the source */
    a->dp[0] |= (b >> 28) & 15;

    /* shift the source up to the next four bits */
    b <<= 4;

    /* ensure that digits are not clamped off */
    a->used += 1;
  }
  mp_clamp (a);
  return MP_OKAY;
}
#endif

/* $Source: /root/tcl/repos-to-convert/tcl/libtommath/bn_mp_set_int.c,v $ */
/* $Revision: 1.1.1.3 $ */
/* $Date: 2006/12/01 00:08:11 $ */