[NSIS] IntOp이용한 산술연산(사칙연산etc) 계산하기
Writer: http://ospace.tistory.com/(ospace114@empal.com) 2008.09.02
user_var(output) value1 OP [value2]
Combines value1 and (depending on OP) value2 into the specified user variable (user_var
). OP is defined as one of the following:
- + ADDs value1 and value2
- - SUBTRACTs value2 from value1
- * MULTIPLIEs value1 and value2
- / DIVIDEs value1 by value2
- % MODULUSs value1 by value2
- | BINARY ORs value1 and value2
- & BINARY ANDs value1 and value2
- ^ BINARY XORs value1 and value2
- >> RIGHT SHIFTs value1 by value2
- << LEFT SHIFTs value1 by value2
- ~ BITWISE NEGATEs value1 (i.e. 7 becomes 4294967288)
- ! LOGICALLY NEGATEs value1 (i.e. 7 becomes 0)
- || LOGICALLY ORs value1 and value2
- && LOGICALLY ANDs value1 and value2
IntOp $0 1 + 1
IntOp $0 $0 + 1
IntOp $0 $0 << 2
IntOp $0 $0 ~
IntOp $0 $0 & 0xF
반응형
'4.개발 및 운영 환경' 카테고리의 다른 글
DXVAChecker로 확인한 지원 HD 코덱 (0) | 2008.10.31 |
---|---|
[번역중] FFmpeg Howto (7) | 2008.10.29 |
[NSIS] LogicLib이용한 if, switch, while, for, loopuntil문 사용하기 (0) | 2008.08.29 |
[NSIS] 괜찮은 NSIS 플러그인 모음 Joel plugin - MSIBanner(progress bar), etc (0) | 2008.08.28 |
[NSIS] 설치와 제거 양쪽에 사용하는 함수 정의하기 (0) | 2008.08.28 |