Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/Binary/SizeBin.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_95sizeBin_35	((void*)startLabel+8)
#define CT_v189	((void*)startLabel+32)
#define F0_NHC_46Binary_46hs_95sizeBin_35	((void*)startLabel+40)
#define FN_NHC_46Binary_46hs_95sizeBin	((void*)startLabel+68)
#define CT_v193	((void*)startLabel+120)
#define CF_NHC_46Binary_46hs_95sizeBin	((void*)startLabel+128)
#define CT_v197	((void*)startLabel+220)
#define PP_NHC_46Binary_46hs_95sizeBin	((void*)startLabel+252)
#define PC_NHC_46Binary_46hs_95sizeBin	((void*)startLabel+252)
#define ST_v191	((void*)startLabel+252)
#define PP_NHC_46Binary_46hs_95sizeBin_35	((void*)startLabel+274)
#define PC_NHC_46Binary_46hs_95sizeBin_35	((void*)startLabel+274)
#define ST_v188	((void*)startLabel+274)
#define ST_v195	((void*)startLabel+300)
#define PS_v192	((void*)startLabel+320)
#define PS_v190	((void*)startLabel+332)
#define PS_v196	((void*)startLabel+344)
#define PS_v194	((void*)startLabel+356)
#define PS_v187	((void*)startLabel+368)
void FR_NHC_46Binary_46hs_95sizeBin_35(void);
extern Node FN_NHC_46Internal_46_95mkIOok1[];
extern Node PM_NHC_46Binary[];
extern Node PC_NHC_46Internal_46_95mkIOok1[];

static Node startLabel[] = {
  bytes2word(1,0,0,1)
, useLabel(CT_v189)
,	/* FN_NHC_46Binary_46hs_95sizeBin_35: (byte 0) */
  bytes2word(PUSH_ARG_I1,EVAL,POP_I1,PRIMITIVE)
, useLabel(FR_NHC_46Binary_46hs_95sizeBin_35)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 90001
, useLabel(ST_v188)
,	/* CT_v189: (byte 0) */
  HW(0,1)
, 0
,	/* F0_NHC_46Binary_46hs_95sizeBin_35: (byte 0) */
  CAPTAG(useLabel(FN_NHC_46Binary_46hs_95sizeBin_35),1)
, useLabel(PS_v187)
, 0
, 0
, 0
, bytes2word(0,0,0,0)
, useLabel(CT_v193)
,	/* FN_NHC_46Binary_46hs_95sizeBin: (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_v192)
, 0
, 0
, 0
, 0
, 90001
, useLabel(ST_v191)
,	/* CT_v193: (byte 0) */
  HW(2,0)
, 0
,	/* CF_NHC_46Binary_46hs_95sizeBin: (byte 0) */
  VAPTAG(useLabel(FN_NHC_46Binary_46hs_95sizeBin))
, useLabel(PS_v190)
, 0
, 0
, 0
, VAPTAG(useLabel(FN_NHC_46Internal_46_95mkIOok1))
, useLabel(F0_NHC_46Binary_46hs_95sizeBin_35)
, bytes2word(1,0,0,1)
, useLabel(CT_v197)
,};
Node FN_NHC_46Binary_46sizeBin[] = {
  bytes2word(NEEDHEAP_I32,PUSH_ARG_I1,PUSH_HEAP,HEAP_CVAL_P1)
, bytes2word(7,HEAP_CVAL_N1,7,HEAP_CREATE)
, bytes2word(HEAP_SPACE,HEAP_SPACE,ZAP_ARG_I1,EVAL)
, bytes2word(NEEDHEAP_I32,APPLY,1,RETURN_EVAL)
, bytes2word(ENDCODE,0,0,0)
, bytes2word(0,0,0,0)
, 0
, useLabel(PS_v196)
, 0
, 0
, 0
, 0
, 120001
, useLabel(ST_v195)
,	/* CT_v197: (byte 0) */
  HW(1,1)
, 0
,};
Node F0_NHC_46Binary_46sizeBin[] = {
  CAPTAG(useLabel(FN_NHC_46Binary_46sizeBin),1)
, useLabel(PS_v194)
, 0
, 0
, 0
, VAPTAG(useLabel(FN_NHC_46Binary_46hs_95sizeBin))
,	/* PP_NHC_46Binary_46hs_95sizeBin: (byte 0) */
 	/* PC_NHC_46Binary_46hs_95sizeBin: (byte 0) */
 	/* ST_v191: (byte 0) */
  bytes2word(78,72,67,46)
, bytes2word(66,105,110,97)
, bytes2word(114,121,46,104)
, bytes2word(115,95,115,105)
, bytes2word(122,101,66,105)
,	/* PP_NHC_46Binary_46hs_95sizeBin_35: (byte 2) */
 	/* PC_NHC_46Binary_46hs_95sizeBin_35: (byte 2) */
 	/* ST_v188: (byte 2) */
  bytes2word(110,0,78,72)
, bytes2word(67,46,66,105)
, bytes2word(110,97,114,121)
, bytes2word(46,104,115,95)
, bytes2word(115,105,122,101)
, bytes2word(66,105,110,35)
, bytes2word(0,0,0,0)
,};
Node PP_NHC_46Binary_46sizeBin[] = {
 };
Node PC_NHC_46Binary_46sizeBin[] = {
 	/* ST_v195: (byte 0) */
  bytes2word(78,72,67,46)
, bytes2word(66,105,110,97)
, bytes2word(114,121,46,115)
, bytes2word(105,122,101,66)
, bytes2word(105,110,0,0)
,	/* PS_v192: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_NHC_46Binary_46hs_95sizeBin)
, useLabel(PC_NHC_46Internal_46_95mkIOok1)
,	/* PS_v190: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_NHC_46Binary_46hs_95sizeBin)
, useLabel(PC_NHC_46Binary_46hs_95sizeBin)
,	/* PS_v196: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_NHC_46Binary_46sizeBin)
, useLabel(PC_NHC_46Binary_46hs_95sizeBin)
,	/* PS_v194: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_NHC_46Binary_46sizeBin)
, useLabel(PC_NHC_46Binary_46sizeBin)
,	/* PS_v187: (byte 0) */
  useLabel(PM_NHC_46Binary)
, useLabel(PP_NHC_46Binary_46hs_95sizeBin_35)
, useLabel(PC_NHC_46Binary_46hs_95sizeBin_35)
,};

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

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

  result = hs_sizeBin(arg1);

  nodeptr = nhc_mkInt(result);
  INIT_PROFINFO(nodeptr,&pf_NHC_46Binary_46hs_95sizeBin_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.