Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/Binary/PutBits.p.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#include "newmacros.h"
#include "runtime.h"

#define FN_NHC_46Binary_46hs_95putBits_35	((void*)startLabel+12)
#define CT_v211	((void*)startLabel+44)
#define F0_NHC_46Binary_46hs_95putBits_35	((void*)startLabel+52)
#define FN_NHC_46Binary_46hs_95putBits	((void*)startLabel+80)
#define CT_v215	((void*)startLabel+132)
#define CF_NHC_46Binary_46hs_95putBits	((void*)startLabel+140)
#define CT_v222	((void*)startLabel+316)
#define FN_LAMBDA207	((void*)startLabel+368)
#define CT_v226	((void*)startLabel+420)
#define F0_LAMBDA207	((void*)startLabel+428)
#define PP_NHC_46Binary_46hs_95putBits	((void*)startLabel+452)
#define PC_NHC_46Binary_46hs_95putBits	((void*)startLabel+452)
#define ST_v213	((void*)startLabel+452)
#define PP_NHC_46Binary_46hs_95putBits_35	((void*)startLabel+474)
#define PC_NHC_46Binary_46hs_95putBits_35	((void*)startLabel+474)
#define ST_v210	((void*)startLabel+474)
#define ST_v217	((void*)startLabel+500)
#define PP_LAMBDA207	((void*)startLabel+519)
#define PC_LAMBDA207	((void*)startLabel+519)
#define ST_v224	((void*)startLabel+519)
#define PS_v214	((void*)startLabel+552)
#define PS_v212	((void*)startLabel+564)
#define PS_v219	((void*)startLabel+576)
#define PS_v218	((void*)startLabel+588)
#define PS_v216	((void*)startLabel+600)
#define PS_v221	((void*)startLabel+612)
#define PS_v220	((void*)startLabel+624)
#define PS_v209	((void*)startLabel+636)
#define PS_v225	((void*)startLabel+648)
#define PS_v223	((void*)startLabel+660)
void FR_NHC_46Binary_46hs_95putBits_35(void);
extern Node FN_NHC_46Internal_46_95mkIOok3[];
extern Node FN_NHC_46Internal_46_95apply3[];
extern Node FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61[];
extern Node FN_Prelude_46Monad_46NHC_46Internal_46IO_46return[];
extern Node PM_NHC_46Binary[];
extern Node PC_NHC_46Internal_46_95mkIOok3[];
extern Node PC_NHC_46Internal_46_95apply3[];
extern Node PC_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61[];
extern Node PC_Prelude_46Monad_46NHC_46Internal_46IO_46return[];

static Node startLabel[] = {
  bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v211)
,	/* FN_NHC_46Binary_46hs_95putBits_35: (byte 0) */
  bytes2word(PUSH_ARG_I1,EVAL,POP_I1,PUSH_ARG_I2)
, bytes2word(EVAL,POP_I1,PUSH_ARG_I3,EVAL)
, bytes2word(POP_I1,PRIMITIVE,NOP,NOP)
, useLabel(FR_NHC_46Binary_46hs_95putBits_35)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 110001
, useLabel(ST_v210)
,	/* CT_v211: (byte 0) */
  HW(0,3)
, 0
,	/* F0_NHC_46Binary_46hs_95putBits_35: (byte 0) */
  CAPTAG(useLabel(FN_NHC_46Binary_46hs_95putBits_35),3)
, useLabel(PS_v209)
, 0
, 0
, 0
, bytes2word(0,0,0,0)
, useLabel(CT_v215)
,	/* FN_NHC_46Binary_46hs_95putBits: (byte 0) */
  bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_P1,7)
, bytes2word(HEAP_CVAL_N1,7,HEAP_CREATE,HEAP_SPACE)
, bytes2word(HEAP_SPACE,HEAP_CVAL_P1,8,RETURN_EVAL)
, bytes2word(ENDCODE,0,0,0)
, bytes2word(0,0,0,0)
, 0
, useLabel(PS_v214)
, 0
, 0
, 0
, 0
, 110001
, useLabel(ST_v213)
,	/* CT_v215: (byte 0) */
  HW(2,0)
, 0
,	/* CF_NHC_46Binary_46hs_95putBits: (byte 0) */
  VAPTAG(useLabel(FN_NHC_46Binary_46hs_95putBits))
, useLabel(PS_v212)
, 0
, 0
, 0
, VAPTAG(useLabel(FN_NHC_46Internal_46_95mkIOok3))
, useLabel(F0_NHC_46Binary_46hs_95putBits_35)
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v222)
,};
Node FN_NHC_46Binary_46putBits[] = {
  bytes2word(NEEDHEAP_I32,HEAP_CVAL_P1,7,HEAP_CVAL_N1)
, bytes2word(7,HEAP_CREATE,HEAP_SPACE,HEAP_SPACE)
, bytes2word(HEAP_CVAL_P1,8,HEAP_CVAL_N1,12)
, bytes2word(HEAP_CREATE,HEAP_SPACE,HEAP_SPACE,HEAP_OFF_N1)
, bytes2word(10,HEAP_ARG_ARG,1,2)
, bytes2word(HEAP_ARG,3,HEAP_CVAL_P1,9)
, bytes2word(HEAP_CVAL_N1,17,HEAP_CREATE,HEAP_SPACE)
, bytes2word(HEAP_SPACE,PUSH_HEAP,HEAP_CVAL_P1,10)
, bytes2word(HEAP_CVAL_N1,22,HEAP_CREATE,HEAP_SPACE)
, bytes2word(HEAP_SPACE,HEAP_OFF_N1,19,HEAP_OFF_N1)
, bytes2word(11,RETURN_EVAL,ENDCODE,0)
, bytes2word(0,0,0,0)
, useLabel(PS_v221)
, 0
, 0
, 0
, 0
, useLabel(PS_v220)
, 0
, 0
, 0
, 0
, useLabel(PS_v219)
, 0
, 0
, 0
, 0
, useLabel(PS_v218)
, 0
, 0
, 0
, 0
, 140001
, useLabel(ST_v217)
,	/* CT_v222: (byte 0) */
  HW(4,3)
, 0
,};
Node F0_NHC_46Binary_46putBits[] = {
  CAPTAG(useLabel(FN_NHC_46Binary_46putBits),3)
, useLabel(PS_v216)
, 0
, 0
, 0
, VAPTAG(useLabel(FN_NHC_46Binary_46hs_95putBits))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply3))
, CAPTAG(useLabel(FN_LAMBDA207),1)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61))
, bytes2word(1,0,0,1)
, useLabel(CT_v226)
,	/* FN_LAMBDA207: (byte 0) */
  bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_P1,7)
, bytes2word(HEAP_CVAL_N1,7,HEAP_CREATE,HEAP_SPACE)
, bytes2word(HEAP_SPACE,HEAP_ARG,1,RETURN_EVAL)
, bytes2word(ENDCODE,0,0,0)
, bytes2word(0,0,0,0)
, 0
, useLabel(PS_v225)
, 0
, 0
, 0
, 0
, 150011
, useLabel(ST_v224)
,	/* CT_v226: (byte 0) */
  HW(1,1)
, 0
,	/* F0_LAMBDA207: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA207),1)
, useLabel(PS_v223)
, 0
, 0
, 0
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46return))
,	/* PP_NHC_46Binary_46hs_95putBits: (byte 0) */
 	/* PC_NHC_46Binary_46hs_95putBits: (byte 0) */
 	/* ST_v213: (byte 0) */
  bytes2word(78,72,67,46)
, bytes2word(66,105,110,97)
, bytes2word(114,121,46,104)
, bytes2word(115,95,112,117)
, bytes2word(116,66,105,116)
,	/* PP_NHC_46Binary_46hs_95putBits_35: (byte 2) */
 	/* PC_NHC_46Binary_46hs_95putBits_35: (byte 2) */
 	/* ST_v210: (byte 2) */
  bytes2word(115,0,78,72)
, bytes2word(67,46,66,105)
, bytes2word(110,97,114,121)
, bytes2word(46,104,115,95)
, bytes2word(112,117,116,66)
, bytes2word(105,116,115,35)
, bytes2word(0,0,0,0)
,};
Node PP_NHC_46Binary_46putBits[] = {
 };
Node PC_NHC_46Binary_46putBits[] = {
 	/* ST_v217: (byte 0) */
  bytes2word(78,72,67,46)
, bytes2word(66,105,110,97)
, bytes2word(114,121,46,112)
, bytes2word(117,116,66,105)
,	/* PP_LAMBDA207: (byte 3) */
 	/* PC_LAMBDA207: (byte 3) */
 	/* ST_v224: (byte 3) */
  bytes2word(116,115,0,78)
, bytes2word(72,67,46,66)
, bytes2word(105,110,97,114)
, bytes2word(121,46,112,117)
, bytes2word(116,66,105,116)
, bytes2word(115,58,49,53)
, bytes2word(58,49,49,45)
, bytes2word(49,53,58,51)
, bytes2word(53,0,0,0)
,	/* PS_v214: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_NHC_46Binary_46hs_95putBits)
, useLabel(PC_NHC_46Internal_46_95mkIOok3)
,	/* PS_v212: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_NHC_46Binary_46hs_95putBits)
, useLabel(PC_NHC_46Binary_46hs_95putBits)
,	/* PS_v219: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_NHC_46Binary_46putBits)
, useLabel(PC_NHC_46Internal_46_95apply3)
,	/* PS_v218: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_NHC_46Binary_46putBits)
, useLabel(PC_NHC_46Binary_46hs_95putBits)
,	/* PS_v216: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_NHC_46Binary_46putBits)
, useLabel(PC_NHC_46Binary_46putBits)
,	/* PS_v221: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_NHC_46Binary_46putBits)
, useLabel(PC_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61)
,	/* PS_v220: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_NHC_46Binary_46putBits)
, useLabel(PC_LAMBDA207)
,	/* PS_v209: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_NHC_46Binary_46hs_95putBits_35)
, useLabel(PC_NHC_46Binary_46hs_95putBits_35)
,	/* PS_v225: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_LAMBDA207)
, useLabel(PC_Prelude_46Monad_46NHC_46Internal_46IO_46return)
,	/* PS_v223: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_LAMBDA207)
, useLabel(PC_LAMBDA207)
,};

#include <haskell2c.h>
#include <HsFFI.h>

/* foreign import ccall "hs_putBits" NHC.Binary.hs_putBits# 3 :: FFI.ForeignObj -> Prelude.Int -> Prelude.Int -> Prelude.Int */
extern HsInt hs_putBits(void*,HsInt,HsInt);
#ifdef PROFILE
static SInfo pf_NHC_46Binary_46hs_95putBits_35 = {"NHC.Binary","NHC.Binary.hs_putBits#","Prelude.Int"};
#endif
C_HEADER(FR_NHC_46Binary_46hs_95putBits_35) {
  NodePtr nodeptr;
  HsInt result;
  void* arg1;
  HsInt arg2;
  HsInt arg3;
  nodeptr = C_GETARG1(1);
  IND_REMOVE(nodeptr);
  arg1 = (void*)derefForeignObj((ForeignObj*)GET_INT_VALUE(nodeptr));
  nodeptr = C_GETARG1(2);
  IND_REMOVE(nodeptr);
  arg2 = (HsInt)GET_INT_VALUE(nodeptr);
  nodeptr = C_GETARG1(3);
  IND_REMOVE(nodeptr);
  arg3 = (HsInt)GET_INT_VALUE(nodeptr);

  result = hs_putBits(arg1,arg2,arg3);

  nodeptr = nhc_mkInt(result);
  INIT_PROFINFO(nodeptr,&pf_NHC_46Binary_46hs_95putBits_35);
  C_RETURN(nodeptr);
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.