Opera 12.15 Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

module.tweaks 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # Tweaks for the stdlib module
  2. TWEAK_STDLIB_INT_CAST_IS_ES262_COMPLIANT lth
  3. Set this to YES if your platform (combination of CPU/FPU, operating
  4. system, compiler, and libraries) will cast a double to either an INT32
  5. or an UINT32 in a way that is compatible with the ECMAScript
  6. specification's sections 9.5 and 9.6.
  7. Setting this to YES will often improve performance because the
  8. conversion can be performed by a single instruction in the FPU, and it
  9. will remove some code from the system (probably less than 1 KB).
  10. Please verify that your choice passes the selftests for this module.
  11. May be set to YES for the following platforms:
  12. Not known
  13. Must be set to NO for the following platforms:
  14. x86 with MSVC or gcc, independent of OS
  15. PPC with CodeWarrior on both MacOS and Dolphin
  16. ARM under Symbian OS
  17. ARM under Linux
  18. Please submit further details to the module owner if you have them.
  19. Category : performance, footprint
  20. Define : INT_CAST_IS_ES262_COMPLIANT
  21. Depends on : nothing
  22. TWEAK_STDLIB_UNSIGNED_TIME_T mortenro
  23. This tweak can be applied if your system has an unsigned
  24. definition of 'time_t'. The advantage of having an
  25. unsigned 'time_t' is that dates can be represented as
  26. far into the future as the year 2106 for a 32-bit system.
  27. For the normal signed 'time_t', the last representable
  28. date is early in year 2038.
  29. The downside of having an unsigned 'time_t' is that a
  30. negative time difference can't be held in a time_t variable.
  31. Many programs relies on this behaviour.
  32. Systems with unsigned 'time_t' are:
  33. VMS
  34. Windows CE (Reportedly)
  35. ?
  36. This tweak will currently affect the behaviour of:
  37. op_gmtime()
  38. Please submit further details to the module owner if you have any.
  39. Category: workaround
  40. Define: STDLIB_UNSIGNED_TIME_T
  41. Disabled for: desktop, smartphone, tv, minimal, mini
  42. Depends on: nothing
  43. TWEAK_STDLIB_SIXTY_FOUR_BIT_TIME_T mortenro
  44. This tweak can be applied if the default is not correct for
  45. your system (as detected by self tests or asserts).
  46. Set this tweak to 0 if the size of time_t is 32-bits, and
  47. set it to 1 if the size of time_t is 64-bits.
  48. The macro DEFAULT_STDLIB_SIXTY_FOUR_BIT_TIME_T is used to
  49. establish the default value only, and should not be used
  50. anywhere in the source code. This macro will be set
  51. automatically depending on the word-size of the machine.
  52. Valid values for STDLIB_SIXTY_FOUR_BIT_TIME_T are 0 and 1.
  53. Category: workaround
  54. Define: STDLIB_SIXTY_FOUR_BIT_TIME_T
  55. Value: DEFAULT_STDLIB_SIXTY_FOUR_BIT_TIME_T
  56. Value for desktop: DEFAULT_STDLIB_SIXTY_FOUR_BIT_TIME_T
  57. Value for smartphone: DEFAULT_STDLIB_SIXTY_FOUR_BIT_TIME_T
  58. Value for tv: DEFAULT_STDLIB_SIXTY_FOUR_BIT_TIME_T
  59. Value for minimal: DEFAULT_STDLIB_SIXTY_FOUR_BIT_TIME_T
  60. Value for mini: DEFAULT_STDLIB_SIXTY_FOUR_BIT_TIME_T
  61. depends on: nothing