~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to erts/emulator/test/alloc_SUITE_data/allocator_test.h

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef ALLOCATOR_TEST_H__
20
20
#define ALLOCATOR_TEST_H__
21
21
 
22
 
typedef unsigned long Ulong;
 
22
typedef ErlDrvUInt Ulong;
23
23
 
24
24
#ifndef __WIN32__
25
25
Ulong erts_alc_test(Ulong, Ulong, Ulong, Ulong);
82
82
#define NO_OF_BKTS              ((Ulong)        ALC_TEST0(0x102))
83
83
#define FIND_BKT(A, I)          ((int)          ALC_TEST2(0x103, (A), (I)))
84
84
 
85
 
/* From erl_bestfit_alloc.c */
86
 
#define IS_AOBF(A)              ((Ulong)        ALC_TEST1(0x200, (A)))
87
 
#define RBT_ROOT(A)             ((RBT_t *)      ALC_TEST1(0x201, (A)))
88
 
#define RBT_PARENT(T)           ((RBT_t *)      ALC_TEST1(0x202, (T)))
89
 
#define RBT_LEFT(T)             ((RBT_t *)      ALC_TEST1(0x203, (T)))
90
 
#define RBT_RIGHT(T)            ((RBT_t *)      ALC_TEST1(0x204, (T)))
91
 
#define RBT_NEXT(T)             ((RBTL_t *)     ALC_TEST1(0x205, (T)))
92
 
#define RBT_IS_BLACK(T)         ((Ulong)        ALC_TEST1(0x206, (T)))
93
 
#define RBT_IS_TREE(T)          ((Ulong)        ALC_TEST1(0x207, (T)))
 
85
/* From erl_bestfit_alloc.c and erl_ao_firstfit_alloc.c */
 
86
#define IS_AOBF(A)              ((Ulong)        ALC_TEST1(RBT_OP(0), (A)))
 
87
#define RBT_ROOT(A)             ((RBT_t *)      ALC_TEST1(RBT_OP(1), (A)))
 
88
#define RBT_PARENT(T)           ((RBT_t *)      ALC_TEST1(RBT_OP(2), (T)))
 
89
#define RBT_LEFT(T)             ((RBT_t *)      ALC_TEST1(RBT_OP(3), (T)))
 
90
#define RBT_RIGHT(T)            ((RBT_t *)      ALC_TEST1(RBT_OP(4), (T)))
 
91
#define RBT_NEXT(T)             ((RBTL_t *)     ALC_TEST1(RBT_OP(5), (T)))
 
92
#define RBT_IS_BLACK(T)         ((Ulong)        ALC_TEST1(RBT_OP(6), (T)))
 
93
#define RBT_IS_TREE(T)          ((Ulong)        ALC_TEST1(RBT_OP(7), (T)))
 
94
#define IS_AOFF(A)              ((Ulong)        ALC_TEST1(RBT_OP(8), (A)))
 
95
#define RBT_MAX_SZ(T)           ((Ulong)        ALC_TEST1(RBT_OP(9), (T)))
94
96
 
95
97
/* From erl_mseg.c */
96
98
#define HAVE_MSEG()             ((int)          ALC_TEST0(0x400))