/[svn]/linuxsampler/trunk/src/scriptvm/CoreVMFunctions.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/CoreVMFunctions.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3677 by persson, Wed Sep 4 15:10:06 2019 UTC revision 3678 by schoenebeck, Fri Dec 27 22:46:08 2019 UTC
# Line 626  VMFnResult* CoreVMFunction_sh_right::exe Line 626  VMFnResult* CoreVMFunction_sh_right::exe
626  }  }
627    
628  ///////////////////////////////////////////////////////////////////////////  ///////////////////////////////////////////////////////////////////////////
629    // built-in script function:  msb()
630    
631    VMFnResult* CoreVMFunction_msb::exec(VMFnArgs* args) {
632        vmint i = args->arg(0)->asInt()->evalInt();
633        return successResult((i >> 7) & 127);
634    }
635    
636    ///////////////////////////////////////////////////////////////////////////
637    // built-in script function:  lsb()
638    
639    VMFnResult* CoreVMFunction_lsb::exec(VMFnArgs* args) {
640        vmint i = args->arg(0)->asInt()->evalInt();
641        return successResult(i & 127);
642    }
643    
644    ///////////////////////////////////////////////////////////////////////////
645  // built-in script function:  min()  // built-in script function:  min()
646    
647  ExprType_t CoreVMFunction_min::returnType(VMFnArgs* args) {  ExprType_t CoreVMFunction_min::returnType(VMFnArgs* args) {

Legend:
Removed from v.3677  
changed lines
  Added in v.3678

  ViewVC Help
Powered by ViewVC